﻿using System;
using System.IO;
using DC2012;
using log4net;
using DC2010;

namespace SdlDotNetExamples.SmallDemos
{
    public class HelloWorld
    {
        protected static readonly ILog log = LogManager.GetLogger(typeof(HelloWorld));

        [STAThread]
        public static void Main()
        {
            //// run as console app
            ////NativeMethods.AllocConsole();
            ////log.Warn("...");

            //log.Warn("Game, Initilizing core ...");
            //Root.I.Ini();

            //log.Warn("Game, Initilizing neocortex ...");
            //Neocortex.I.Ini();

            //log.Warn("Game, Loaded");

            try
            {
                using (Core_Xna game = new Core_Xna())
                {
                    game.Run();
                }
            }
            catch (Exception ex)
            {
                //og.Error("", ex);
            }


            //Core app = new Core();
            //app.Go();
        }
    }
}